package com.landeb.shop.huo.httpRequest;

import com.landeb.shop.huo.bean.BeanStatusInfo;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by blade on 2016/11/20.
 */

public interface ActGoodsDetailRequest {

    @FormUrlEncoded
    @POST("Good/is_my_favorite")
    Observable<BeanStatusInfo> getFocused(@Field("goods_id") String id);

    @GET("User/goods_favorite_cancel")
    Observable<BeanStatusInfo> cancelFavourite(@Query("goods_id") String id);

    @FormUrlEncoded
    @POST("User/goods_favorite_add")
    Observable<BeanStatusInfo> addFavourite(@Field("goods_id") String id);

    @FormUrlEncoded
    @POST("Goods/cart_add")
    Observable<BeanStatusInfo> GoodsAdd(@Field("goods_id") String goods_id, @Field("attr") String attr, @Field("amount") int amount, @Field("buy") String buyNow);


}
